package org.vectrics.location;

import java.io.Serializable;

import org.vectrics.common.db.CodedObject;

/**
 * @author mmoore
 */
public class Locale implements CodedObject, Serializable {
    private String code = null;

    private Long countryNumber = null;

    private String description = null;

    private String extendedCode = null;

    private boolean voided = false;

    /**
     * 
     */
    public Locale() {
        super();
    }

    /**
     * @return Returns the code.
     */
    public String getCode() {
        return this.code;
    }

    /**
     * @return Returns the countryNumber.
     */
    public Long getCountryNumber() {
        return this.countryNumber;
    }

    /**
     * @return Returns the description.
     */
    public String getDescription() {
        return this.description;
    }

    /**
     * @return Returns the extendedCode.
     */
    public String getExtendedCode() {
        return this.extendedCode;
    }

    public java.util.Locale getJavaLocale() {
        return (this.getLocale());
    }

    public java.util.Locale getLocale() {
        java.util.Locale locale = new java.util.Locale(this.getCode());
        return (locale);
    }

    /**
     * @return Returns the voided.
     */
    public boolean getVoided() {
        return this.voided;
    }

    /**
     * @param code
     *            The code to set.
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * @param countryNumber
     *            The countryNumber to set.
     */
    public void setCountryNumber(Long countryNumber) {
        this.countryNumber = countryNumber;
    }

    /**
     * @param description
     *            The description to set.
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * @param extendedCode
     *            The extendedCode to set.
     */
    public void setExtendedCode(String extendedCode) {
        this.extendedCode = extendedCode;
    }

    /**
     * @param voided
     *            The voided to set.
     */
    public void setVoided(boolean voided) {
        this.voided = voided;
    }
}
